﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;

namespace Eswat
{
	/// <summary>
	/// Aggregates test results.
	/// </summary>
	public class TestResultAggregator : ITestResultLoggingService
	{
		private readonly List<TestResult> _testResultList;

		private readonly ObservableCollection<TestResult> _observableTestResultList;

		/// <summary>
		/// Initializes a new instance of the <see cref="TestResultAggregator"/> class.
		/// </summary>
		public TestResultAggregator()
		{
			this._testResultList = new List<TestResult>();
			this._observableTestResultList = new ObservableCollection<TestResult>(this._testResultList);
		}

		/// <summary>
		/// Gets the results.
		/// </summary>
		public ObservableCollection<TestResult> Results
		{
			get { return this._observableTestResultList; }
		}
	}
}
